package com.web.spider;

import com.web.spider.youku.entity.Page;
import com.web.spider.youku.service.IDownloadService;
import com.web.spider.youku.service.impl.HttpClientDownloadService;
import com.web.spider.youku.util.LoadPropertyUtil;

/**
 * Hello world!
 *
 */
public class App {
    public static void main( String[] args ){
        String url = "https://list.youku.com/show/id_z9cd2277647d311e5b692.html?spm=a2h0k.11417342.soresults.ddetail";
//        String content = PageDownloadUtil.getPageContent(url);
//        System.out.println(content);
        IDownloadService downloadService = new HttpClientDownloadService();
        Page page = downloadService.download(url);
        System.out.println(page.getContent());

        System.out.println(LoadPropertyUtil.getYouKu("allnumberRegex"));
    }
}
